<?php
//获取图像信息
$info = getimagesize("logo.png");
print_r($info);

// imagecreatefromjpeg($filename);
// imagecreatefromgif($filename);

//1 gif   2  jpeg   3  png 